package club.haomoon.boss.validate.base;

import com.alibaba.fastjson2.JSONObject;
import club.haomoon.core.validator.annotation.IDMust;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import jakarta.validation.constraints.NotNull;

@Data
@Schema(title = "支付渠道设置参数")
public class SettingPayConfigValidate {

    @IDMust(message = "id参数必传且需大于0")
   @Schema(title  = "ID", required = true)
    private Integer id;

    @NotNull(message = "name参数缺失")
   @Schema(title  = "模版名称", required = true)
    private String name;

   @Schema(title  = "模版名称")
    private String icon;

   @Schema(title  = "排序编号")
    private Integer sort;

   @Schema(title  = "备注信息")
    private String remark;

   @Schema(title  = "domain")
    private String domian;

   @Schema(title  = "配置参数")
    private JSONObject config;

}
